<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:86:"F:\phpstudy_pro\WWW\www.danganguanli.com\public/../wcapps/mobile\view\index\index.html";i:1637913429;s:79:"F:\phpstudy_pro\WWW\www.danganguanli.com\wcapps\mobile\view\public\web_top.html";i:1637912451;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title><?php echo $configs['WEBNAME']; ?></title>   
        <link rel="stylesheet" href="/static/m/css/main.css">
<link rel="stylesheet" href="/static/m/css/swiper.min.css">
<script>    
    (function () {
        var resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize'; 
        var docEl = document.documentElement;
        function resizeFn() {   
            var docW = docEl.clientWidth;   
            if (docW > 750) {   
                docW = 750  
            }   
            docEl.style.fontSize = (docW * 100 / 750) + 'px';   
        }   
        resizeFn();     
        window.addEventListener(resizeEvt, resizeFn);   
    })();           
</script>
<?php 
    $backurl = request()->url(true);
 ?>
    </head>
    <body>
    <div class="index_flash">
        <div class="swiper-container">
            <div class="swiper-wrapper">
               <?php if(is_array($flashRes1) || $flashRes1 instanceof \think\Collection || $flashRes1 instanceof \think\Paginator): $i = 0; $__LIST__ = $flashRes1;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
               <a href="<?php echo $vo['url']; ?>" title="<?php echo $vo['name']; ?>"  class="swiper-slide">
                  <img src="/<?php echo $vo['imgpath']; ?>" alt="<?php echo $vo['name']; ?>" />
               </a>
               <?php endforeach; endif; else: echo "" ;endif; ?>
            </div>
        </div>
    </div>  
    <?php  $typedb = db("type"); if(is_array($typeRes[1]) || $typeRes[1] instanceof \think\Collection || $typeRes[1] instanceof \think\Paginator): $i = 0;$__LIST__ = is_array($typeRes[1]) ? array_slice($typeRes[1],0,1, true) : $typeRes[1]->slice(0,1, true); if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
    <div class="list1">
        <h2>
            <div class="xian"></div>
            <div class="txt"><span><?php echo $vo['name']; ?></span></div>
        </h2>
        <?php 
            $types = $typedb->where("cid","=",$vo['id'])->order("vieworder asc")->select();
         ?>
        <div class="items">
            <?php if(is_array($types) || $types instanceof \think\Collection || $types instanceof \think\Paginator): $i = 0; $__LIST__ = $types;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo2): $mod = ($i % 2 );++$i;
                $imgpath = "/static/m/img/1.png";
                if($vo2['imgpath']) $imgpath = "/".$vo2['imgpath'];
             ?>
            <a href="<?php echo url('mobile/index/lst',array('cid'=>$vo['id'],'sid'=>$vo2['id'])); ?>" class="item">
                <div class="pic">
                    <img src="<?php echo $imgpath; ?>" />
                </div>
                <div class="txt"><?php echo $vo2['name']; ?></div>
            </a>
            <?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
    </div>
    <?php endforeach; endif; else: echo "" ;endif; ?>
    <div class="ad1">
        <?php if(is_array($flashRes2) || $flashRes2 instanceof \think\Collection || $flashRes2 instanceof \think\Paginator): $i = 0;$__LIST__ = is_array($flashRes2) ? array_slice($flashRes2,0,2, true) : $flashRes2->slice(0,2, true); if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
        <a href="<?php echo $vo['url']; ?>"><img src="/<?php echo $vo['imgpath']; ?>" class="pic1"></a>
        <?php endforeach; endif; else: echo "" ;endif; ?>
    </div>    
    <?php if(is_array($typeRes[1]) || $typeRes[1] instanceof \think\Collection || $typeRes[1] instanceof \think\Paginator): $i = 0;$__LIST__ = is_array($typeRes[1]) ? array_slice($typeRes[1],1,20, true) : $typeRes[1]->slice(1,20, true); if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
    <div class="list1">
        <h2>
            <div class="xian"></div>
            <div class="txt"><span><?php echo $vo['name']; ?></span></div>
        </h2>
        <?php if($vo['imgpath2']): ?>
        <div class="ad2">
            <a href="javascript:;"><img src="<?php echo $vo['imgpath2']; ?>" class="pic2"></a>
        </div>
        <?php endif; 
            $types = $typedb->where("cid","=",$vo['id'])->order("vieworder asc")->select();
         ?>
        <div class="items">
            <?php if(is_array($types) || $types instanceof \think\Collection || $types instanceof \think\Paginator): $i = 0; $__LIST__ = $types;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo2): $mod = ($i % 2 );++$i;
                $imgpath = "/static/m/img/1.png";
                if($vo2['imgpath']) $imgpath = "/".$vo2['imgpath'];
             ?>
            <a href="<?php echo url('mobile/index/lst',array('cid'=>$vo['id'],'sid'=>$vo2['id'])); ?>" class="item">
                <div class="pic">
                    <img src="<?php echo $imgpath; ?>" />
                </div>
                <div class="txt"><?php echo $vo2['name']; ?></div>
            </a>
            <?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
    </div>
    <?php endforeach; endif; else: echo "" ;endif; ?>
    <a href="<?php echo url('mobile/contact/index'); ?>" class="bt" style="color: #ddd;">我要做一个一样的...</a>
    </body>
    <script src="/static/m/js/jquery-1.11.3.min.js"></script>
    <script src="/static/m/js/swiper.min.js"></script>
    <script>
        var swiper = new Swiper('.index_flash .swiper-container', {
          spaceBetween: 30,
          centeredSlides: true,
          autoplay: {
            delay: 2500,
            disableOnInteraction: false,
          },
        }); 
    </script>
</html>
